package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 地址表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "address")
public class Address implements Serializable {
    /**
     * 地区编码
     */
    @TableId(value = "address_areaId", type = IdType.INPUT)
    private String addressAreaid;

    /**
     * 省市名称
     */
    @TableField(value = "address_name")
    private String addressName;

    /**
     * 父级省市id
     */
    @TableField(value = "address_regionId")
    private String addressRegionid;

    @TableField(exist = false)
    private List<Address> children;

    private static final long serialVersionUID = 1L;
}